import type { MaterialsResponse, InformationResponse } from '@/api/demand/order/model/type';

/**
 * @: 确认或新增订单数据未修改前类型
 * @return {*}
 */
export interface protoSubmitData {
    orderDate: string;
    orderDeliveryDate: string;
    orderNumber: string;
    orderPriority: string;
    orderQuantity: string;
    urgency: string;
    itemCode: { materialCode: string } | string;
    customerCode: string;
    customerCompanyName: string;
    id?: number;
    unAction?: boolean;
    customerName?: string;
    customer?: { customerCompanyName: string; customerCode: string };
}

/**
 * @: 查询订单数据未修改前类型
 * @return {*}
 */
export interface protoParams {
    orderNumber: string;
    itemCode: string;
    itemName: string;
    customerName: string;
    creator: string;
    orderStatus: string;
    orderDate: string[];
    orderDeliveryDate: string[];
    createTime: string[];
}

/**
 * @: 物料编码下拉框数据类型
 * @return {*}
 */
export interface MaterialsOptions {
    label?: string;
    options: MaterialsResponse[];
}

/**
 * @: 客户编码下拉框数据类型
 * @return {*}
 */
export interface InformationOptions {
    label?: string;
    options: InformationResponse[];
}
